import React, { lazy } from 'react'

const routes = [
  {
    path: '/',
    component: lazy(() => import('../pages/home'))
  },
  {
    path: '/order/all',
    component: lazy(() => import('../pages/order/All'))
  },
  {
    path: '/order/new',
    component: lazy(() => import('../pages/order/New'))
  },
  {
    path: '/order/exported',
    component: lazy(() => import('../pages/order/Exported'))
  },
  {
    path: '/order/delivered',
    component: lazy(() => import('../pages/order/Delivered'))
  },
  {
    path: '/order/pending',
    component: lazy(() => import('../pages/order/Pending'))
  },
  {
    path: '/order/processed',
    component: lazy(() => import('../pages/order/Processed'))
  },
  {
    path: '/order/unmatch',
    component: lazy(() => import('../pages/order/Unmatch'))
  },
  {
    path: '/order/activated',
    component: lazy(() => import('../pages/order/Activated'))
  },
  {
    path: '/order/recycle',
    component: lazy(() => import('../pages/order/Recycle'))
  },
  {
    path: '/order/import',
    component: lazy(() => import('../pages/order/Import'))
  },
  {
    path: '/product/channel',
    component: lazy(() => import('../pages/product/channel'))
  },
  {
    path: '/product/channel/add',
    component: lazy(() => import('../pages/product/channel/EditChannel'))
  },
  {
    path: '/product/channel/edit/:id',
    component: lazy(() => import('../pages/product/channel/EditChannel'))
  },
  {
    path: '/product/list',
    component: lazy(() => import('../pages/product/list'))
  },
  {
    path: '/product/edit/:id',
    component: lazy(() => import('../pages/product/list/EditProduct'))
  },
  {
    path: '/product/add',
    component: lazy(() => import('../pages/product/list/EditProduct'))
  },
  {
    path: '/setting/cmcc',
    component: lazy(() => import('../pages/setting/Cmcc'))
  },
  {
    path: '/setting/user',
    component: lazy(() => import('../pages/setting/user'))
  },
  {
    path: '/setting/role',
    component: lazy(() => import('../pages/setting/role'))
  }
]

export default routes
